package com.ruoyi.wretchant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wretchant.mapper.MetaRecruitMapper;
import com.ruoyi.wretchant.domain.MetaRecruit;
import com.ruoyi.wretchant.service.IMetaRecruitService;
import com.ruoyi.common.core.text.Convert;

/**
 * 招聘Service业务层处理
 * 
 * @author 简简单单 Online zuozuo
 * @date 2022-04-18
 */
@Service
public class MetaRecruitServiceImpl implements IMetaRecruitService 
{
    @Autowired
    private MetaRecruitMapper metaRecruitMapper;

    /**
     * 查询招聘
     * 
     * @param id 招聘主键
     * @return 招聘
     */
    @Override
    public MetaRecruit selectMetaRecruitById(Long id)
    {
        return metaRecruitMapper.selectMetaRecruitById(id);
    }

    /**
     * 查询招聘列表
     * 
     * @param metaRecruit 招聘
     * @return 招聘
     */
    @Override
    public List<MetaRecruit> selectMetaRecruitList(MetaRecruit metaRecruit)
    {
        return metaRecruitMapper.selectMetaRecruitList(metaRecruit);
    }

    /**
     * 新增招聘
     * 
     * @param metaRecruit 招聘
     * @return 结果
     */
    @Override
    public int insertMetaRecruit(MetaRecruit metaRecruit)
    {
        return metaRecruitMapper.insertMetaRecruit(metaRecruit);
    }

    /**
     * 修改招聘
     * 
     * @param metaRecruit 招聘
     * @return 结果
     */
    @Override
    public int updateMetaRecruit(MetaRecruit metaRecruit)
    {
        return metaRecruitMapper.updateMetaRecruit(metaRecruit);
    }

    /**
     * 批量删除招聘
     * 
     * @param ids 需要删除的招聘主键
     * @return 结果
     */
    @Override
    public int deleteMetaRecruitByIds(String ids)
    {
        return metaRecruitMapper.deleteMetaRecruitByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除招聘信息
     * 
     * @param id 招聘主键
     * @return 结果
     */
    @Override
    public int deleteMetaRecruitById(Long id)
    {
        return metaRecruitMapper.deleteMetaRecruitById(id);
    }
}
